import React from 'react';
import {useLocation} from "react-router-dom";

function Two(props) {
    // console.log(useLocation())
    const {state} = useLocation();
    if(!state){
        return null;
    }

    return (
        <div>
            <h3>two</h3>
            <p>a:{state.a}</p>
        </div>
    );
}

export default Two;